class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :article do |t|
      t.string :title
      t.text :contents
      t.text :author
      t.date :regdate

      t.timestamps
    end
  end

  def self.down
    drop_table :article
  end
end
